package com.huawei.appgallery.search.ui.widget;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import com.huawei.appgallery.foundation.ui.framework.cardkit.widget.CardListAdapter;
import o.cia;
import o.cie;
import o.cuv.f;

public class SearchCardListAdapter extends CardListAdapter {
    public SearchCardListAdapter(Context context, cia o_cia) {
        super(context, o_cia);
    }

    public boolean isNeedCreateItemView(View view) {
        if (super.isNeedCreateItemView(view)) {
            return true;
        }
        boolean z = (view == null || ((Integer) view.getTag(f.ᐝ)).intValue() == view.getResources().getConfiguration().orientation) ? false : true;
        return z;
    }

    public View createView(cie o_cie, ViewGroup viewGroup) {
        View createView = super.createView(o_cie, viewGroup);
        if (createView != null) {
            createView.setTag(f.ᐝ, Integer.valueOf(viewGroup.getResources().getConfiguration().orientation));
        }
        return createView;
    }
}
